#!/usr/bin/env python
# -*- coding: utf-8 -*-


from web_server.device_proxy import DeviceProxy
from web_server.models.db_client import DBClient


class RoleMgr:
    """角色管理器"""
    
    def __init__(self, device_proxy: DeviceProxy, db_client: DBClient):
        self.device_proxy = device_proxy
        self.db_client = db_client

    def __del__(self):
        self.destroy()

    def destroy(self):
        self.db_client = None
        self.device_proxy = None